﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BankingSystem.BLL;
using BankingSystem.DAL;

namespace BankingSystem.PL
{
    [Serializable]
    public class Test:IEntity
    {
        public string Name
        {
            get;
            set;
        }

        #region IEntity Members

        public string Id
        {
            get { return Guid.NewGuid().ToString(); }
        }

        #endregion
    }

    class Program
    {
        static void Main(string[] args)
        {                  
            Repository<Test> reoo = new Repository<Test>();                       
            var results = reoo.CheckOut();
            //reoo.Insert(new Test() { Name = "Test3" });
            //reoo.Save();
			//reoo.SaveXML();

            //results = reoo.CheckOut();
            foreach (var e in results)
            {
                Console.WriteLine(e.Name);
            }          
        }
    }
}
